<?php
	require_once 'Asset.php';
	require_once 'AdFilter.php';
	require_once 'AdType.php';
	require_once 'TargetAudience.php';
	require_once 'Patch.php';
	require_once 'ThirdPartyTracking.php';
	//
	class Ad
	{
		//View methods.
		const DETAILS = 0;
		const URLS = 1;
		const BILLINGS = 2;
		//
		//Details.
		public $id;
		public $name;
		public $comment;
		public $adType;
		public $archived;
		//
		public $mediaAgencyName;
		public $campaignName;
		public $placementName;
		public $enabled;
		//
		public $defaultImage;
		public $asset;
		//
		public $classifications;
		public $tags;
		public $targetAudiences;
		//
		public $filter;
		//Urls.
		public $agencyThirdPartyTracking;
		public $publisherThirdPartyTracking;
		public $patchOnAdDownload;
		public $pathOnAdPlay;
		//Billing.
		//
		public function __construct()
		{
			$this->name = '';
			$this->campaignName = '';
			$this->placementName = '';
			$this->enabled = false;
			//Details.
			$this->id = 0;
			$this->name = '';
			$this->comment = '';
			$this->archived = false;
			//
			$this->adType = AdType::STANDARD;
			$this->targetAudiences = array();
			$this->classifications = array();
			$this->tags = array();
			$this->asset = new Asset();
			$this->defaultImage = '';
			//
			$this->filter = new AdFilter();
			//Urls.
			$this->agencyThirdPartyTracking = new ThirdPartyTracking();
			$this->publisherThirdPartyTracking = new ThirdPartyTracking();
			$this->onAdDownloadPatch = new Patch();
			$this->onAdPlayPatch = new Patch();
		}
	}
?>